﻿@model GeneralCommonSettingsModel
@using Telerik.Web.Mvc.UI;
@{
    //page title
    ViewBag.Title = T("Admin.Configuration.Settings.GeneralCommon").Text;
}

<h1 class="page-title">
<i class="micon-cog"></i>
    @T("Admin.GeneralSettings")				
</h1>


       
@using (Html.BeginForm())
{
    
<div class="modal adminContaner">
          <div class="modal-header">
            <h3>@T("Admin.Configuration.Settings.GeneralCommon")</h3>
          </div>
          <div class="modal-body">
                  
    @Html.Action("SiteScopeConfiguration", "Setting")
    @Html.ValidationSummary(false)
    
    <script type="text/javascript">
        $(document).ready(function () {

            $('.hintLink').popover();

            $("#@Html.FieldIdFor(model => model.SiteInformationSettings.SiteClosed)").click(toggleSiteClosed);
            $("#@Html.FieldIdFor(model => model.SiteInformationSettings.MobileDevicesSupported)").click(toggleMobileDevicesSupported);
            $("#@Html.FieldIdFor(model => model.SecuritySettings.CaptchaEnabled)").click(toggleReCaptcha);

            toggleSiteClosed();
            toggleMobileDevicesSupported();
            toggleReCaptcha();
        });

        function toggleSiteClosed() {
            if ($('#@Html.FieldIdFor(model => model.SiteInformationSettings.SiteClosed)').is(':checked')) {
                $('#pnlSiteClosedAllowForAdmins').show();
            }
            else {
                $('#pnlSiteClosedAllowForAdmins').hide();
            }
        }

        function toggleMobileDevicesSupported() {
            if ($('#@Html.FieldIdFor(model => model.SiteInformationSettings.MobileDevicesSupported)').is(':checked')) {
                $('#pnlDefaultSiteThemeForMobileDevices').show();
            }
            else {
                $('#pnlDefaultSiteThemeForMobileDevices').hide();
            }
        }

        function toggleReCaptcha() {
            if ($('#@Html.FieldIdFor(model => model.SecuritySettings.CaptchaEnabled)').is(':checked')) {
                $('#ssCaptchaShowOnLoginPagepnl').show();
                $('#ssCaptchaShowOnRegistrationPagepnl').show();
                $('#ssCaptchaShowOnContactUsPagepnl').show();
                $('#ssCaptchaShowOnEmailWishlistToFriendPagepnl').show();
                $('#ssCaptchaShowOnEmailProductToFriendPagepnl').show();
                $('#ssCaptchaShowOnBlogCommentPagepnl').show();
                $('#ssCaptchaShowOnNewsCommentPagepnl').show();
                $('#ssCaptchaShowOnProductReviewPagepnl').show();
                $('#ssReCaptchaPublicKeypnl').show();
                $('#ssReCaptchaPrivateKeypnl').show();
            }
            else {
                $('#ssCaptchaShowOnLoginPagepnl').hide();
                $('#ssCaptchaShowOnRegistrationPagepnl').hide();
                $('#ssCaptchaShowOnContactUsPagepnl').hide();
                $('#ssCaptchaShowOnEmailWishlistToFriendPagepnl').hide();
                $('#ssCaptchaShowOnEmailProductToFriendPagepnl').hide();
                $('#ssCaptchaShowOnBlogCommentPagepnl').hide();
                $('#ssCaptchaShowOnNewsCommentPagepnl').hide();
                $('#ssCaptchaShowOnProductReviewPagepnl').hide();
                $('#ssReCaptchaPublicKeypnl').hide();
                $('#ssReCaptchaPrivateKeypnl').hide();
            }
        }
    </script>
    

    
    
    @Html.Telerik().TabStrip().Name("generalsettings-edit").Items(x =>
{
    var tabSiteInformationSettings = x.Add().Text(T("Admin.Configuration.Settings.GeneralCommon.SiteInformationSettings").Text).Content(TabSiteInformationSettings().ToHtmlString());
    var tabSEOSettings = x.Add().Text(T("Admin.Configuration.Settings.GeneralCommon.SEOSettings").Text).Content(TabSEOSettings().ToHtmlString());
    var tabSecuritySettings = x.Add().Text(T("Admin.Configuration.Settings.GeneralCommon.SecuritySettings").Text).Content(TabSecuritySettings().ToHtmlString());
    var tabPdfSettings = x.Add().Text(T("Admin.Configuration.Settings.GeneralCommon.PdfSettings").Text).Content(TabPdfSettings().ToHtmlString());
    var tabLocalizationSettings = x.Add().Text(T("Admin.Configuration.Settings.GeneralCommon.LocalizationSettings").Text).Content(TabLocalizationSettings().ToHtmlString());
    var tabFullTextSettings = x.Add().Text(T("Admin.Configuration.Settings.GeneralCommon.FullTextSettings").Text).Content(TabFullTextSettings().ToHtmlString());

    var selectedTab = (string)ViewData["selectedTab"];
    switch (selectedTab)
    {
        case "siteinformation":
            tabSiteInformationSettings.Selected(true);
            break;
        case "seo":
            tabSEOSettings.Selected(true);
            break;
        case "security":
            tabSecuritySettings.Selected(true);
            break;
        case "pdf":
            tabPdfSettings.Selected(true);
            break;
        case "localization":
            tabLocalizationSettings.Selected(true);
            break;
        case "fulltext":
            tabFullTextSettings.Selected(true);
            break;
        default:
            tabSiteInformationSettings.Selected(true);
            break;
    }

    //generate an event
    EngineContext.Current.Resolve<IEventPublisher>().Publish(new AdminTabStripCreated(x, "generalsettings-edit"));
})


          </div>
          <div class="modal-footer">
                        <input type="submit" name="save" class="btn" value="@T("Admin.Common.Save")" />
              @*<a class="btn" href="#">Save changes</a>*@
          </div>
        </div>

}




        <div class="input-prepend">
        <div class="btn-group">
        
        </div>

        </div>
        <div class="clear"></div>


@helper TabSiteInformationSettings()
{
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SiteInformationSettings.SiteClosed_OverrideForSite, model => model.SiteInformationSettings.SiteClosed, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SiteInformationSettings.SiteClosed)
                        <div class="btn disabled checkboxholder">
                    @Html.EditorFor(model => model.SiteInformationSettings.SiteClosed, new {@class = "add-on" })
                            </div>
                    </div>
                @Html.ValidationMessageFor(model => model.SiteInformationSettings.SiteClosed)
                </div>
        <div class="clear"></div>
        <div class="input-prepend" id="pnlSiteClosedAllowForAdmins">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SiteInformationSettings.SiteClosedAllowForAdmins_OverrideForSite, model => model.SiteInformationSettings.SiteClosedAllowForAdmins, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SiteInformationSettings.SiteClosedAllowForAdmins)
        
                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SiteInformationSettings.SiteClosedAllowForAdmins)
               </div>

        </div>

                @Html.ValidationMessageFor(model => model.SiteInformationSettings.SiteClosedAllowForAdmins)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SiteInformationSettings.DefaultSiteThemeForDesktops_OverrideForSite, model => model.SiteInformationSettings.DefaultSiteThemeForDesktops, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SiteInformationSettings.DefaultSiteThemeForDesktops)
                
                @Html.DropDownListFor(model => model.SiteInformationSettings.DefaultSiteThemeForDesktops, Model.SiteInformationSettings.AvailableSiteThemesForDesktops)
        </div>
                @Html.ValidationMessageFor(model => model.SiteInformationSettings.DefaultSiteThemeForDesktops)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SiteInformationSettings.AllowCustomerToSelectTheme_OverrideForSite, model => model.SiteInformationSettings.AllowCustomerToSelectTheme, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SiteInformationSettings.AllowCustomerToSelectTheme)
                      <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SiteInformationSettings.AllowCustomerToSelectTheme)
                        </div>
        </div>

                @Html.ValidationMessageFor(model => model.SiteInformationSettings.AllowCustomerToSelectTheme)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SiteInformationSettings.MobileDevicesSupported_OverrideForSite, model => model.SiteInformationSettings.MobileDevicesSupported, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SiteInformationSettings.MobileDevicesSupported)
                            <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SiteInformationSettings.MobileDevicesSupported)
                    </div>
        </div>

                @Html.ValidationMessageFor(model => model.SiteInformationSettings.MobileDevicesSupported)

        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="pnlDefaultSiteThemeForMobileDevices">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SiteInformationSettings.DefaultSiteThemeForMobileDevices_OverrideForSite, model => model.SiteInformationSettings.DefaultSiteThemeForMobileDevices, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SiteInformationSettings.DefaultSiteThemeForMobileDevices)
                
                @Html.DropDownListFor(model => model.SiteInformationSettings.DefaultSiteThemeForMobileDevices, Model.SiteInformationSettings.AvailableSiteThemesForMobileDevices)

        </div>
                @Html.ValidationMessageFor(model => model.SiteInformationSettings.DefaultSiteThemeForMobileDevices)
        </div>

    }
@helper TabSEOSettings()
{
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SeoSettings.PageTitleSeparator_OverrideForSite, model => model.SeoSettings.PageTitleSeparator, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SeoSettings.PageTitleSeparator)

                @Html.EditorFor(model => model.SeoSettings.PageTitleSeparator)
        </div>
                @Html.ValidationMessageFor(model => model.SeoSettings.PageTitleSeparator)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SeoSettings.PageTitleSeoAdjustment_OverrideForSite, model => model.SeoSettings.PageTitleSeoAdjustment, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SeoSettings.PageTitleSeoAdjustment)

                @Html.DropDownListFor(model => model.SeoSettings.PageTitleSeoAdjustment, Model.SeoSettings.PageTitleSeoAdjustmentValues)
        </div>
                @Html.ValidationMessageFor(model => model.SeoSettings.PageTitleSeoAdjustment)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SeoSettings.DefaultTitle_OverrideForSite, model => model.SeoSettings.DefaultTitle, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SeoSettings.DefaultTitle)

                @Html.EditorFor(model => model.SeoSettings.DefaultTitle)
        </div>
                @Html.ValidationMessageFor(model => model.SeoSettings.DefaultTitle)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SeoSettings.DefaultMetaKeywords_OverrideForSite, model => model.SeoSettings.DefaultMetaKeywords, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SeoSettings.DefaultMetaKeywords)

                @Html.EditorFor(model => model.SeoSettings.DefaultMetaKeywords)
        </div>
                @Html.ValidationMessageFor(model => model.SeoSettings.DefaultMetaKeywords)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SeoSettings.DefaultMetaDescription_OverrideForSite, model => model.SeoSettings.DefaultMetaDescription, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SeoSettings.DefaultMetaDescription)

                @Html.EditorFor(model => model.SeoSettings.DefaultMetaDescription)
        </div>
                @Html.ValidationMessageFor(model => model.SeoSettings.DefaultMetaDescription)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SeoSettings.ConvertNonWesternChars_OverrideForSite, model => model.SeoSettings.ConvertNonWesternChars, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SeoSettings.ConvertNonWesternChars)

                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SeoSettings.ConvertNonWesternChars)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.SeoSettings.ConvertNonWesternChars)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.SeoSettings.CanonicalUrlsEnabled_OverrideForSite, model => model.SeoSettings.CanonicalUrlsEnabled, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SeoSettings.CanonicalUrlsEnabled)

                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SeoSettings.CanonicalUrlsEnabled)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.SeoSettings.CanonicalUrlsEnabled)
        </div>
        <div class="clear"></div>
}
@helper TabSecuritySettings()
{
        <div class="input-prepend">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.EncryptionKey)

                @Html.EditorFor(model => model.SecuritySettings.EncryptionKey)
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.EncryptionKey)
                <input type="submit" name="changeencryptionkey" value="@T("Admin.Common.Change")" id="changeencryptionkey" class="adminButton" onclick="return confirm('@T("Admin.Common.AreYouSure")    ');" />
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.AdminAreaAllowedIpAddresses)

                @Html.EditorFor(model => model.SecuritySettings.AdminAreaAllowedIpAddresses)
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.AdminAreaAllowedIpAddresses)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.HideAdminMenuItemsBasedOnPermissions)

                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SecuritySettings.HideAdminMenuItemsBasedOnPermissions)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.HideAdminMenuItemsBasedOnPermissions)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                <hr />
                <br />
                A CAPTCHA is a program that can tell whether its user is a human or a computer.
                You've probably seen them — colorful images with distorted text at the bottom of
                Web registration forms. CAPTCHAs are used by many websites to prevent abuse from
                "bots," or automated programs usually written to generate spam. No computer program
                can read distorted text as well as humans can, so bots cannot navigate sites protected
                by CAPTCHAs. cmsCommerce uses <a href="http://www.google.com/recaptcha" target="_blank">reCAPTCHA</a>.
        </div>

        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.CaptchaEnabled)

                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SecuritySettings.CaptchaEnabled)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.CaptchaEnabled)
        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="ssCaptchaShowOnLoginPagepnl">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.CaptchaShowOnLoginPage)

                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SecuritySettings.CaptchaShowOnLoginPage)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.CaptchaShowOnLoginPage)
        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="ssCaptchaShowOnRegistrationPagepnl">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.CaptchaShowOnRegistrationPage)

                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SecuritySettings.CaptchaShowOnRegistrationPage)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.CaptchaShowOnRegistrationPage)
        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="ssCaptchaShowOnContactUsPagepnl">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.CaptchaShowOnContactUsPage)


                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SecuritySettings.CaptchaShowOnContactUsPage)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.CaptchaShowOnContactUsPage)
        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="ssCaptchaShowOnEmailWishlistToFriendPagepnl">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.CaptchaShowOnEmailWishlistToFriendPage)


                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SecuritySettings.CaptchaShowOnEmailWishlistToFriendPage)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.CaptchaShowOnEmailWishlistToFriendPage)
        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="ssCaptchaShowOnEmailProductToFriendPagepnl">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.CaptchaShowOnEmailProductToFriendPage)


                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SecuritySettings.CaptchaShowOnEmailProductToFriendPage)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.CaptchaShowOnEmailProductToFriendPage)
        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="ssCaptchaShowOnBlogCommentPagepnl">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.CaptchaShowOnBlogCommentPage)

                @Html.EditorFor(model => model.SecuritySettings.CaptchaShowOnBlogCommentPage)
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.CaptchaShowOnBlogCommentPage)

        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="ssCaptchaShowOnNewsCommentPagepnl">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.CaptchaShowOnNewsCommentPage)

                @Html.EditorFor(model => model.SecuritySettings.CaptchaShowOnNewsCommentPage)
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.CaptchaShowOnNewsCommentPage)
        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="ssCaptchaShowOnProductReviewPagepnl">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.CaptchaShowOnProductReviewPage)


                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.SecuritySettings.CaptchaShowOnProductReviewPage)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.CaptchaShowOnProductReviewPage)
        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="ssReCaptchaPublicKeypnl">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.ReCaptchaPublicKey)

                @Html.EditorFor(model => model.SecuritySettings.ReCaptchaPublicKey)
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.ReCaptchaPublicKey)
        </div>
        <div class="clear"></div>
        <div class="input-prepend" id="ssReCaptchaPrivateKeypnl">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.SecuritySettings.ReCaptchaPrivateKey)

                @Html.EditorFor(model => model.SecuritySettings.ReCaptchaPrivateKey)
        </div>
                @Html.ValidationMessageFor(model => model.SecuritySettings.ReCaptchaPrivateKey)
        </div>
        <div class="clear"></div>
}
@helper TabPdfSettings()
{
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.PdfSettings.Enabled_OverrideForSite, model => model.PdfSettings.Enabled, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.PdfSettings.Enabled)

        <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.PdfSettings.Enabled)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.PdfSettings.Enabled)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.PdfSettings.LetterPageSizeEnabled_OverrideForSite, model => model.PdfSettings.LetterPageSizeEnabled, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.PdfSettings.LetterPageSizeEnabled)

                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.PdfSettings.LetterPageSizeEnabled)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.PdfSettings.LetterPageSizeEnabled)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.OverrideSiteCheckboxFor(model => model.PdfSettings.LogoPictureId_OverrideForSite, "pdf-logo-picture", Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.PdfSettings.LogoPictureId)
                @Html.EditorFor(model => model.PdfSettings.LogoPictureId)

        </div>
                @Html.ValidationMessageFor(model => model.PdfSettings.LogoPictureId)
        </div>
        <div class="clear"></div>
}
@helper TabLocalizationSettings()
{
        <div class="input-prepend">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.LocalizationSettings.UseImagesForLanguageSelection)
                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.LocalizationSettings.UseImagesForLanguageSelection)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.LocalizationSettings.UseImagesForLanguageSelection)
        </div>
        <div class="clear"></div>        
        <div class="input-prepend">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.LocalizationSettings.SeoFriendlyUrlsForLanguagesEnabled)

                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.LocalizationSettings.SeoFriendlyUrlsForLanguagesEnabled)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.LocalizationSettings.SeoFriendlyUrlsForLanguagesEnabled)
        </div>
        <div class="clear"></div>
        <div class="input-prepend">
        <div class="btn-group">
                @Html.CmsLabelFor(model => model.LocalizationSettings.LoadAllLocaleRecordsOnStartup)

                <div class="btn disabled checkboxholder">
                @Html.EditorFor(model => model.LocalizationSettings.LoadAllLocaleRecordsOnStartup)
                    </div>
        </div>
                @Html.ValidationMessageFor(model => model.LocalizationSettings.LoadAllLocaleRecordsOnStartup)
        </div>
        <div class="clear"></div>        
}
@helper TabFullTextSettings()
{
                if (Model.FullTextSettings.Supported)
                {
                    <div>@T("Admin.Configuration.Settings.GeneralCommon.FullTextSettings.Supported")</div>
                }
                else
                {
                   <div>@T("Admin.Configuration.Settings.GeneralCommon.FullTextSettings.NotSupported")</div>
                }

        if (Model.FullTextSettings.Supported)
        {
            
         if (Model.FullTextSettings.Enabled)
         {
             <div>@T("Admin.Configuration.Settings.GeneralCommon.FullTextSettings.CurrenlyEnabled")</div>
         }
         else
         {
             <div>@T("Admin.Configuration.Settings.GeneralCommon.FullTextSettings.CurrenlyDisabled")</div>
         }
        <div class="input-prepend">
        <div class="btn-group">
            <input type="submit" name="togglefulltext" value="@(Model.FullTextSettings.Enabled ? T("Admin.Configuration.Settings.GeneralCommon.FullTextSettings.Disable").Text : T("Admin.Configuration.Settings.GeneralCommon.FullTextSettings.Enable").Text)" class="adminButton" />
        </div>

        </div>
        <div class="clear"></div>

            if (Model.FullTextSettings.Enabled)
                    {
                    <div class="input-prepend">
                    <div class="btn-group">
                        @Html.CmsLabelFor(model => model.FullTextSettings.SearchMode)
                        @Html.DropDownListFor(model => model.FullTextSettings.SearchMode, Model.FullTextSettings.SearchModeValues)
                    </div>
                        @Html.ValidationMessageFor(model => model.FullTextSettings.SearchMode)
                    </div>
                    <div class="clear"></div>
                    }
        }
}








